package com.guage.producter.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.guage.producter.domain.Students;
import com.guage.producter.domain.StudentsKey;
import com.guage.producter.mapper.StudentsMapper;
import com.guage.producter.service.StudentsService;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author yangdezhao
 * @since 2024-03-16
 */
@Service
public class StudentsServiceImpl implements StudentsService {

    StudentsMapper studentsMapper;
    @Autowired
    public void setStudentMapper(StudentsMapper studentsMapper) {
        this.studentsMapper = studentsMapper;
    }
	@Override
	public int insertSelective(Students record) {
		// TODO Auto-generated method stub
		return studentsMapper.insertSelective(record);
	}

	@Override
	public int deleteByPrimaryKey(StudentsKey studentsKey) {
		// TODO Auto-generated method stub
		return studentsMapper.deleteByPrimaryKey(studentsKey);
	}

	@Override
	public int updatByPrimaryKeySelective(Students students) {
		return studentsMapper.updateByPrimaryKeySelective(students);
	}

	@Override
	public Students selectByPrimaryKey(StudentsKey key) {
		return studentsMapper.selectByPrimaryKey(key);
	}



}
